package com.pro.entry;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

public class JsCarousel {

  private Integer carouselId;
  private String imgAddress;
  private String imgTitle;
  private String imgType;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private String startDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private String expireDate;
  private Integer display;
  private Integer serialNumber;
  private String describe;
  private String createId;
  private String remarks;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private String updateDate;
  private String bannerName;
  private String connect;

  public JsCarousel() {
  }

  public JsCarousel(Integer carouselId, String imgAddress, String imgTitle, String imgType, String startDate, String expireDate, Integer display, Integer serialNumber, String describe, String createId, String remarks, String updateDate, String bannerName, String connect) {
    this.carouselId = carouselId;
    this.imgAddress = imgAddress;
    this.imgTitle = imgTitle;
    this.imgType = imgType;
    this.startDate = startDate;
    this.expireDate = expireDate;
    this.display = display;
    this.serialNumber = serialNumber;
    this.describe = describe;
    this.createId = createId;
    this.remarks = remarks;
    this.updateDate = updateDate;
    this.bannerName = bannerName;
    this.connect = connect;
  }

  public Integer getCarouselId() {
    return carouselId;
  }

  public void setCarouselId(Integer carouselId) {
    this.carouselId = carouselId;
  }

  public String getImgAddress() {
    return imgAddress;
  }

  public void setImgAddress(String imgAddress) {
    this.imgAddress = imgAddress;
  }

  public String getImgTitle() {
    return imgTitle;
  }

  public void setImgTitle(String imgTitle) {
    this.imgTitle = imgTitle;
  }

  public String getImgType() {
    return imgType;
  }

  public void setImgType(String imgType) {
    this.imgType = imgType;
  }

  public String getStartDate() {
    return startDate;
  }

  public void setStartDate(String startDate) {
    this.startDate = startDate;
  }

  public String getExpireDate() {
    return expireDate;
  }

  public void setExpireDate(String expireDate) {
    this.expireDate = expireDate;
  }

  public Integer getDisplay() {
    return display;
  }

  public void setDisplay(Integer display) {
    this.display = display;
  }

  public Integer getSerialNumber() {
    return serialNumber;
  }

  public void setSerialNumber(Integer serialNumber) {
    this.serialNumber = serialNumber;
  }

  public String getDescribe() {
    return describe;
  }

  public void setDescribe(String describe) {
    this.describe = describe;
  }

  public String getCreateId() {
    return createId;
  }

  public void setCreateId(String createId) {
    this.createId = createId;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public String getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(String updateDate) {
    this.updateDate = updateDate;
  }

  public String getBannerName() {
    return bannerName;
  }

  public void setBannerName(String bannerName) {
    this.bannerName = bannerName;
  }

  public String getConnect() {
    return connect;
  }

  public void setConnect(String connect) {
    this.connect = connect;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof JsCarousel)) return false;

    JsCarousel that = (JsCarousel) o;

    if (getCarouselId() != null ? !getCarouselId().equals(that.getCarouselId()) : that.getCarouselId() != null)
      return false;
    if (getImgAddress() != null ? !getImgAddress().equals(that.getImgAddress()) : that.getImgAddress() != null)
      return false;
    if (getImgTitle() != null ? !getImgTitle().equals(that.getImgTitle()) : that.getImgTitle() != null) return false;
    if (getImgType() != null ? !getImgType().equals(that.getImgType()) : that.getImgType() != null) return false;
    if (getStartDate() != null ? !getStartDate().equals(that.getStartDate()) : that.getStartDate() != null)
      return false;
    if (getExpireDate() != null ? !getExpireDate().equals(that.getExpireDate()) : that.getExpireDate() != null)
      return false;
    if (getDisplay() != null ? !getDisplay().equals(that.getDisplay()) : that.getDisplay() != null) return false;
    if (getSerialNumber() != null ? !getSerialNumber().equals(that.getSerialNumber()) : that.getSerialNumber() != null)
      return false;
    if (getDescribe() != null ? !getDescribe().equals(that.getDescribe()) : that.getDescribe() != null) return false;
    if (getCreateId() != null ? !getCreateId().equals(that.getCreateId()) : that.getCreateId() != null) return false;
    if (getRemarks() != null ? !getRemarks().equals(that.getRemarks()) : that.getRemarks() != null) return false;
    if (getUpdateDate() != null ? !getUpdateDate().equals(that.getUpdateDate()) : that.getUpdateDate() != null)
      return false;
    if (getBannerName() != null ? !getBannerName().equals(that.getBannerName()) : that.getBannerName() != null)
      return false;
    return getConnect() != null ? getConnect().equals(that.getConnect()) : that.getConnect() == null;

  }

  @Override
  public int hashCode() {
    int result = getCarouselId() != null ? getCarouselId().hashCode() : 0;
    result = 31 * result + (getImgAddress() != null ? getImgAddress().hashCode() : 0);
    result = 31 * result + (getImgTitle() != null ? getImgTitle().hashCode() : 0);
    result = 31 * result + (getImgType() != null ? getImgType().hashCode() : 0);
    result = 31 * result + (getStartDate() != null ? getStartDate().hashCode() : 0);
    result = 31 * result + (getExpireDate() != null ? getExpireDate().hashCode() : 0);
    result = 31 * result + (getDisplay() != null ? getDisplay().hashCode() : 0);
    result = 31 * result + (getSerialNumber() != null ? getSerialNumber().hashCode() : 0);
    result = 31 * result + (getDescribe() != null ? getDescribe().hashCode() : 0);
    result = 31 * result + (getCreateId() != null ? getCreateId().hashCode() : 0);
    result = 31 * result + (getRemarks() != null ? getRemarks().hashCode() : 0);
    result = 31 * result + (getUpdateDate() != null ? getUpdateDate().hashCode() : 0);
    result = 31 * result + (getBannerName() != null ? getBannerName().hashCode() : 0);
    result = 31 * result + (getConnect() != null ? getConnect().hashCode() : 0);
    return result;
  }

  @Override
  public String toString() {
    return "JsCarousel{" +
            "carouselId=" + carouselId +
            ", imgAddress='" + imgAddress + '\'' +
            ", imgTitle='" + imgTitle + '\'' +
            ", imgType='" + imgType + '\'' +
            ", startDate='" + startDate + '\'' +
            ", expireDate='" + expireDate + '\'' +
            ", display=" + display +
            ", serialNumber=" + serialNumber +
            ", describe='" + describe + '\'' +
            ", createId='" + createId + '\'' +
            ", remarks='" + remarks + '\'' +
            ", updateDate='" + updateDate + '\'' +
            ", bannerName='" + bannerName + '\'' +
            ", connect='" + connect + '\'' +
            '}';
  }
}
